// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_SALES_SO_ITEM
// * CreateDate    : 2014-03-27 22:08:59
// * Creater       : CodeSmith
// * LastChangeDate: 2014-03-27 22:08:59
// * LastChanger   : 2014-03-27 22:08:59
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Suzsoft.Smart.Data;
using ESOL.Common.Entity;

namespace ESOL.Business.Sales
{
/// <summary>
    /// SalesSoItem
    /// </summary>
    public partial class SalesSoItemBs
    {
        #region GetByID
        /// <summary>
        /// Get Entity
        /// </summary>
        /// <param name="objSalesSoItemEntity">Entity</param>
        /// <returns>Entity</returns>
        public static SalesSoItemEntity GetSalesSoItem(SalesSoItemEntity objSalesSoItemEntity)
        {
            return DataAccess.SelectSingle<SalesSoItemEntity>(objSalesSoItemEntity);
        }
        #endregion


        #region Insert
        /// <summary>
        /// Insert Data
        /// </summary>
        /// <param name="objSalesSoItemEntity">Entity</param>
        /// <returns>true Insert Succeed; false Insert Fail</returns>
        public static bool InsertSalesSoItem(SalesSoItemEntity objSalesSoItemEntity)
        {
            return DataAccess.Insert(objSalesSoItemEntity);
        }

        public static bool InsertSalesSoItem(List<SalesSoItemEntity> objSalesSoItemEntityList)
        {
            return DataAccess.Insert(objSalesSoItemEntityList);
        }
        #endregion


        #region Update
        /// <summary>
        /// Update Data
        /// </summary>
        /// <param name="objSalesSoItemEntity">Entity</param>
        /// <returns>true Update Succeed; false Update Fail</returns>
        public static bool UpdateSalesSoItem(SalesSoItemEntity objSalesSoItemEntity)
        {
            return DataAccess.Update(objSalesSoItemEntity);
        }

        public static bool UpdateSalesSoItem(List<SalesSoItemEntity> objSalesSoItemEntityList)
        {
            return DataAccess.Update<SalesSoItemEntity>(objSalesSoItemEntityList);
        }
        #endregion


        #region Delete
        /// <summary>
        /// Delete Data
        /// </summary>
        /// <param name="objSalesSoItemEntity">Entity</param>
        /// <returns>true Delete Succeed; false Delete Fail</returns>
        public static bool DeleteSalesSoItem(SalesSoItemEntity objSalesSoItemEntity)
        {
            return DataAccess.Delete(objSalesSoItemEntity);
        }

        public static bool DeleteSalesSoItem(List<SalesSoItemEntity> objSalesSoItemEntityList)
        {
            return DataAccess.Delete<SalesSoItemEntity>(objSalesSoItemEntityList);
        }
        #endregion


        #region GetAll
        /// <summary>
        /// Get All Data
        /// </summary>
        /// <returns>Back All Data<returns>
        public static DataSet GetSalesSoItemAll()
        {
            return DataAccess.SelectAllDataSet<SalesSoItemEntity>();
        }
        /// <summary>
        /// Get All Data List
        /// </summary>
        /// <returns>Back All Data List<returns>
        public static List<SalesSoItemEntity> GetSalesSoItemAllList()
        {
            return DataAccess.SelectAll<SalesSoItemEntity>();
        }
        #endregion
	}
	
	
}	

